<%-- 
    Document   : FormMelihatNilaiKelas
    Created on : Nov 8, 2012, 10:13:52 AM
    Author     : admin
--%>

<%@page import="bean.ProsesBean"%>
<%@page import="java.sql.ResultSet"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Nilai Kelas</title>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>

        <%
            String kode = request.getParameter("kode");

            try {
                ProsesBean PK = new ProsesBean();%>
        <div id="wrapper">
            <div id="header-wrapper">
                <div id="header">
                    <div id="logo">
                        <h1><a href="#">SIDANIS</a></h1>
                        <p> Sistem Daftar Nilai SMA <a href="">FCT</a></p>
                    </div>
                    <div id="menu">
                        <ul>
                            <li><a href="FormUtamaGuru.jsp">Daftar Mata Pelajaran</a></li>
                            <li><a href="FormInputanData.jsp">Tambah Nilai </a></li>
                            <li><a href="">Login as  <td><%=username%></td></a></li>
                            <li><a href="Logout.jsp">Logout</a></li>

                        </ul>
                    </div>
                </div>
            </div>
            <!-- end #header -->
            <div id="page">
                <div id="page-bgtop">
                    <div id="page-bgbtm">
                        <div id="content">
                            <div class="post">
                                <h3 class="title"><a href="#">Nilai Perkelas</a></h3>
                                <div class="entry">
                                    Kode Mapel = <%=kode%>     
                                    <h3>Daftar Nilai</h3>
                                    <table width="80%" border="1">
                                        <tr>
                                        <center>
                                            <td><center>NIS</center></td>
                                            <td><center>Nama</center></td>
                                            <td><center>Ulangan 1</center></td>
                                            <td><center>Ulangan 2</center></td>
                                            <td><center>Ulangan 3</center></td>
                                            <td><center>Tugas 1</center></td>
                                            <td><center>Tugas 2</center></td>
                                            <td><center>UTS</center></td>
                                            <td><center>UAS</center></td>
                                            <td><center>Nilai Akhir</center></td>
                                        </center>
                                        </tr>
                                        <%
                                            ResultSet temp = PK.dataNilaiKelas(kode);
                                            while (temp.next()) {
                                        %>
                                        <tr>
                                            <td><center><%=temp.getString(1)%></center></td>
                                        <td><center><%=temp.getString(2)%></center></td>
                                        <td><center><%=temp.getString(3)%></center></td>
                                        <td><center><%=temp.getString(4)%></center></td>
                                        <td><center><%=temp.getString(5)%></center></td>
                                        <td><center><%=temp.getString(6)%></center></td>
                                        <td><center><%=temp.getString(7)%></center></td>
                                        <td><center><%=temp.getString(8)%></center></td>
                                        <td><center><%=temp.getString(9)%></center></td>
                                        <td><center><%=temp.getString(10)%></center></td>
                                        </tr>
                                        <%            }
                                        %>
                                    </table >

                                    <%
                                        } catch (Exception e) {
                                            e.getMessage();
                                        }
                                    %>

                                </div>
                            </div>                            
                        </div>
                        <!-- end #content -->

                        <!-- end #sidebar -->

                    </div>
                </div>
            </div>
            <!-- end #page -->
        </div>
        <br><br><br><br><br><br> <br><br><br><br><br><br> <br><br><br><br><br><br>
        <div id="footer">
            <p>Copyright (c) 2011 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org">FCT</a>.</p>
        </div>




    </div>
</body>
</html>
